import { View, Image, Text } from '@tarojs/components';
import Taro from '@tarojs/taro';
import { Icon } from '@nutui/nutui-react-taro';
import errorImg from './imgs/icon_zwqx.png';
import './Error.scss';

const ErrorPage = () => {
  const goBack = () => {
    Taro.navigateBack();
  };

  return (
    <View>
      <Icon name="left" size="24" color="#000" onClick={goBack} className="back-icon" />
      <View className="error-page">
        <Image src={errorImg} className="error-img" />
        <Text>暂无访问权限</Text>
      </View>
    </View>
  );
};

export default ErrorPage;